/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bishe.entity;

import com.thinkgem.jeesite.modules.bishe.entity.BisheOrder;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 合同管理Entity
 * @author yue
 * @version 2018-12-28
 */
public class BishePack extends DataEntity<BishePack> {
	
	private static final long serialVersionUID = 1L;
	private BisheOrder order;		// 订单
	private String packTitle;		// 合同标题
	private String packContent;		// 合同内容
	private Date packDate;		// 合同签订时间
	private String orderType;		// 合同类型
	private Date rentStartDate;		// 起租时间
	private Date rentEndDate;		// 到租时间
	private String rentMoney;		// 租金
	private Integer jiesuanFlag;		// 结算标记
	private List<BisheAccountLog> bisheAccountLogList = Lists.newArrayList();		// 子表列表
	
	public BishePack() {
		super();
	}

	public BishePack(String id){
		super(id);
	}

	public BisheOrder getOrder() {
		return order;
	}

	public void setOrder(BisheOrder order) {
		this.order = order;
	}
	
	@Length(min=0, max=255, message="合同标题长度必须介于 0 和 255 之间")
	public String getPackTitle() {
		return packTitle;
	}

	public void setPackTitle(String packTitle) {
		this.packTitle = packTitle;
	}
	
	public String getPackContent() {
		return packContent;
	}

	public void setPackContent(String packContent) {
		this.packContent = packContent;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getPackDate() {
		return packDate;
	}

	public void setPackDate(Date packDate) {
		this.packDate = packDate;
	}
	
	@Length(min=0, max=64, message="合同类型长度必须介于 0 和 64 之间")
	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRentStartDate() {
		return rentStartDate;
	}

	public void setRentStartDate(Date rentStartDate) {
		this.rentStartDate = rentStartDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRentEndDate() {
		return rentEndDate;
	}

	public void setRentEndDate(Date rentEndDate) {
		this.rentEndDate = rentEndDate;
	}
	
	@Length(min=0, max=50, message="租金长度必须介于 0 和 50 之间")
	public String getRentMoney() {
		return rentMoney;
	}

	public void setRentMoney(String rentMoney) {
		this.rentMoney = rentMoney;
	}
	
	public Integer getJiesuanFlag() {
		return jiesuanFlag;
	}

	public void setJiesuanFlag(Integer jiesuanFlag) {
		this.jiesuanFlag = jiesuanFlag;
	}
	
	public List<BisheAccountLog> getBisheAccountLogList() {
		return bisheAccountLogList;
	}

	public void setBisheAccountLogList(List<BisheAccountLog> bisheAccountLogList) {
		this.bisheAccountLogList = bisheAccountLogList;
	}
}